import request from '@/utils/request'

// 创建混合云支撑-混合云客户授权IP范围
export function createHbcClientAuthIpRange(data) {
  return request({
    url: '/hbcsupport/hbc-client-auth-ip-range/create',
    method: 'post',
    data: data
  })
}

// 更新混合云支撑-混合云客户授权IP范围
export function updateHbcClientAuthIpRange(data) {
  return request({
    url: '/hbcsupport/hbc-client-auth-ip-range/update',
    method: 'post',
    data: data
  })
}

// 删除混合云支撑-混合云客户授权IP范围
export function deleteHbcClientAuthIpRange(id) {
  return request({
    url: '/hbcsupport/hbc-client-auth-ip-range/delete?id=' + id,
    method: 'get'
  })
}

// 获得混合云支撑-混合云客户授权IP范围
export function getHbcClientAuthIpRange(id) {
  return request({
    url: '/hbcsupport/hbc-client-auth-ip-range/get?id=' + id,
    method: 'get'
  })
}

// 获得混合云支撑-混合云客户授权IP范围分页
export function getHbcClientAuthIpRangePage(query) {
  return request({
    url: '/hbcsupport/hbc-client-auth-ip-range/page',
    method: 'get',
    params: query
  })
}

// 导出混合云支撑-混合云客户授权IP范围 Excel
export function exportHbcClientAuthIpRangeExcel(query) {
  return request({
    url: '/hbcsupport/hbc-client-auth-ip-range/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
